//
//  UILabel+Extension.m
//  cascade-realm
//
//  Created by QSC on 18/5/24.
//

#import "UILabel+Extension.h"

@implementation UILabel (Extension)

+ (UILabel *)LabelWithFont:(UIFont *)font color:(UIColor *)color text:(NSString *)text{
    
    UILabel * label = [UILabel new];
    label.text = text;
    label.font = font;
    label.textColor = color;
    
    return  label;
    
}
@end

@implementation UIButton(Extension)
+ (UIButton *)ButtonWithFont:(UIFont *)font color:(UIColor *)color text:(NSString *)text{
    UIButton * btn = [UIButton buttonWithType:UIButtonTypeCustom];
    [btn setTitle:text forState:UIControlStateNormal];
    [btn setTitleColor:color forState:UIControlStateNormal];
    btn.titleLabel.font = font;
    
    return  btn;
}
@end
